<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Lepucv</title>
        <link href="/LepucvWeb/css/jsfcrud.css" rel="stylesheet" type="text/css" />
        <script language="javascript" src="/LepucvWeb/js/jquery-1.4.2.min.js"></script>
        <script language="javascript">jQuery.noConflict();</script>
        <script language="javascript" src="/LepucvWeb/js/javascript.js"></script>
        <link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css"></link>

    </head>

    <body>
        <div class="logo">
            <img id="logolepucv" src="/LepucvWeb/Imagenes/lepucv_logo.jpg"/>
            <img id="barraICC" src="/LepucvWeb/Imagenes/logopucv.jpg"/>
        </div>
        <div class="menu">
            <p id="p_menu">Menú</p>
            <ice:form partialSubmit="true">
                <hr />
                <br />
                <ul id="menu" class="menu">
                    <li>
                        <ice:commandLink action="welcome" value="Home" />
                    </li>
                    <li>
                        <a href="#" class="menubg" rel="menubg">Usuarios</a>
                        <ul class="acitem">
                            <li>
                                <ice:commandLink action="#{usuario.searchSetup}" value="Buscar usuario" />
                            </li>
                            <li>
                                <ice:commandLink rendered="#{usuario.admin}" action="#{usuario.createSetup}" value="Ingresar usaurio" />
                            </li>
                            <li>
                                <ice:commandLink action="#{usuario.listSetup}" value="Mostrar usuarios" />
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="menubg" rel="menubg" >
                            Roles
                        </a>
                        <ul class="acitem">
                            <li>
                                <ice:commandLink action="#{rol.searchSetup}" value="Buscar rol" />
                            </li>
                            <li>
                                <ice:commandLink rendered="#{usuario.admin}" action="#{rol.createSetup}" value="Ingresar rol" />
                            </li>
                            <li>
                                <ice:commandLink action="#{rol.listSetup}" value="Mostrar roles" />
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="menubg" rel="menubg" >
                            Formularios
                        </a>
                        <ul class="acitem">
                            <li>
                                <ice:commandLink action="#{formulario.searchSetup}" value="Buscar form" />
                            </li>
                            <li>
                                <ice:commandLink action="#{formulario.listSetup}" value="Mostrar forms" />
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="menubg" rel="menubg">
                            Informes
                        </a>
                        <ul class="acitem">
                            <li>
                                <ice:commandLink action="#{usuario.informeSetup}" value="Crear informe" />
                            </li>
                        </ul>

                    </li>
                </ul>

                <br class="clearit" />
                <hr />
                <fieldset id="userInfo">
                    <legend class="legend">Usuario</legend>
                    <ice:outputText style="color:white;" value="#{usuario.usuarioLogin.primerNombre} #{usuario.usuarioLogin.apellidoPaterno} #{usuario.usuarioLogin.apellidoMaterno}" />
                    <br />
                    <ice:outputText style="color:white;" value="Modo:" />
                    <ice:outputText rendered="#{usuario.admin}" style="color:#58FA58;" value="Administrador" />
                    <ice:outputText rendered="#{!usuario.admin}" style="color:#FA5858;" value="Usuario" />
                    <br />
                    <ice:commandLink value="Cerrar sesión" action="#{usuario.logout}" />
                </fieldset>
            </ice:form>
        </div>

        <div class="main">
            <p class="mainTitulo">
                <ui:insert name="title">Lepucv</ui:insert>
            </p>
            <br />
            <p>
                <ui:insert name="body">Hola mundo</ui:insert>
            </p>
        </div>
        <div class="cargando" id="cargando">
            <ice:panelGrid columns="1" style="background-color:white;" >
                <ice:outputText value="Cargando..." />
                <ice:graphicImage url="Imagenes/cargando.gif" />
            </ice:panelGrid>
        </div>
        <script>
            jQuery(document).ready(function() {jQuery('.menu').initMenu();});
        </script>
    </body>

</html>
